#pragma once

#include "SOCK_Stream.h"
#include "INET_Addr.h"

namespace Network
{
	class SOCK_Acceptor {
	public:
		SOCK_Acceptor( INET_Addr &sock_addr );
		~SOCK_Acceptor(void);
		HANDLE GetHandle() const;

		void open(INET_Addr &addr);
		void accept(SOCK_Stream &s);
		HANDLE get_handle() const;
	private:
		HANDLE handle_;
	};
}